package com.hubu.blog;

import com.hubu.blog.entity.User;
import com.hubu.blog.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.ArrayList;

@SpringBootTest
class BlogApplicationTests {

    @Resource
    UserMapper userMapper;

    @Test
    void contextLoads() {

        for (User user : userMapper.selectAll()) {
            System.out.println(user);
//            System.out.println(user.getUsername());
        }
    }

}
